//
//  NSString+Common.m
//  TY-C
//
//  Created by xyyl on 2024/2/29.
//

#import "NSString+Common.h"

@implementation NSString (Common)

- (CGFloat)oppositeX:(CGFloat)sX ToBigX:(CGFloat)bigX {
    
    return sX /bigX;
}

- (CGFloat)oppositeY:(CGFloat)sY ToBigY:(CGFloat)bigY {
    return sY /bigY;

}

+ (NSString *)getNowTimeStr {
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSString *dateTime = [formatter stringFromDate:[NSDate date]];
    return dateTime;
}

@end
